module.exports = (app) => {
  let config = {};
  // 用来加密cookie
  config.keys = "zhufeng";
  config.view = {
    // 默认模板引擎
    defaultExtension: ".html",
    // 默认引擎映射
    defaultViewEngine: "nunjucks",
    // 模板引擎映射
    mapping: {
      ".html": "nunjucks",
    },
  };
  config.news = {
    pageSize: 10,
    newsListUrl: "http://localhost:3000/news",
  };
  config.cache = {
    url: "http://localhost:3000/cache",
  };
  return config;
};
